<!--
  Generated template for the LoginPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar color="primary">
    <ion-title>登录</ion-title>
    <ion-buttons end>
        <button ion-button icon-only (click)="goToSetting()" type="button">
          <ion-icon name="settings"></ion-icon>
        </button>
    </ion-buttons>
  </ion-navbar>

</ion-header>


<ion-content padding>
  <ion-item>
    <ion-icon name="person" item-left color="primary"></ion-icon>
    <ion-input type="text" required clearInput [(ngModel)]="username" placeholder="请输入用户名"></ion-input>
  </ion-item>
  <ion-item>
    <ion-icon name="lock" item-left color="primary"></ion-icon>
    <ion-input type="password" required clearInput [(ngModel)]="password" placeholder="请输入密码"></ion-input>
  </ion-item>
  <button style="margin-top: 25px" ion-button block (click)="login()">登录</button>
</ion-content>
